/**
 * @file
 * @author
 * @date
 * @brief
 */

#ifndef STOPWATCH_H_
#define STOPWATCH_H_
#include "stdint.h"

typedef enum __stop_watch_state_t
{
    stop_watch_state_idle,
    stop_watch_state_start,    
} stop_watch_state_t;

void stopwatch_start(void);
void stopwatch_stop(void);
void stopwatch_resume(void);
stop_watch_state_t stopwatch_state(void);
void stopwatch_catch_time(void);
void stopwatch_catch_time_lap(void);
uint32_t stopwatch_get_catch_time(uint8_t index);
void stopwatch_init(void);
void stopwatch_reset(void);
#endif
